<?php 
print_r($_FILES);
$file	= (object) $_FILES['Filedata'];
$dirname=dirname(__FILE__);
print_r($file->tmp_name);
print_r($dirname . '/'.  $file->name);
move_uploaded_file($file->tmp_name, $dirname . '/'.  $file->name);
?>